package game.screen;

import game.Constants;
import game.Conversation;
import game.manager.ConversationManager;
import game.manager.ScreenManager;
import game.screen.option.BackOption;
import game.screen.option.ForwardOption;
import game.screen.option.ScreenOption;

import java.util.List;
import java.util.Vector;

public class ConversationViewerScreen extends Screen {

	@Override
	protected List<ScreenOption> getOptions() {
		final Vector<ScreenOption> options = new Vector<ScreenOption>();
		final List<Conversation> conversations = ConversationManager
				.getManager().getConversations();
		for (final Conversation conversation : conversations) {
			options.add(new ScreenOption(conversation.getTitle()) {
				@Override
				public void select() {
					ScreenManager.getManager().activateScreen(
							new ConversationScreen(conversation));
				}
			});
		}
		options.add(new BackOption());
		options.add(new ForwardOption());
		return options;
	}

	@Override
	public String getTitle() {
		return Constants.MESSAGES_SCREEN_TITLE;
	}

	@Override
	public void draw() {
	}
}
